<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
		uni.getSystemInfo({
			success: function(res) {
				// 根据 model 进行判断 是否为苹果手机
				if (res.model === 'iPhone X' || 'iPhone XR' || 'iPhone XS Max' || 'iPhone 11' || 'iPhone 11 Pro' || 'iPhone 11 Pro Max') {
					getApp().globalData.isIphone = true;
				}
			}
		});
		
		
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
globalData: {
	isIphone: false;
}
</script>

<style>
	#app{
		width: 750rpx;
	}
/*每个页面公共css */
.ellipsis {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	word-break: break-all;
}
</style>
